package com.wzl.controller;


import com.wzl.service.SysHistoryTrendService;
import com.wzl.util.Res;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (SysHistoryTrend)表控制层
 *
 * @author wzl
 * @since 2022-05-02 20:51:36
 */
@RestController
@RequestMapping("sysHistoryTrend")
public class SysHistoryTrendController {
    /**
     * 服务对象
     */
    @Resource
    private SysHistoryTrendService sysHistoryTrendService;

    /**
     * 查询所有数据
     *
     * @return 所有数据
     */
    @GetMapping("/getAllHistory")
    public Res getAllHistory() {
        return Res.success(sysHistoryTrendService.getAll());
    }
}

